package com.kedacom.ctsp.authority.service;

import com.kedacom.ctsp.authority.entity.ChargeRelation;
import com.kedacom.ctsp.web.service.CrudService;

import java.util.Map;
import java.util.Set;

/**
 * 分管关系关联 服务类
 *
 * @author sunchenjie
 */
public interface ChargeRelationService extends CrudService<ChargeRelation, String> {

    Set<String> getChargeIds(int typeFrom, String id, int typeTo);

    /**
     * 获取分管关系
     *
     * @param typeFrom
     * @param ids      哪些id
     * @return 类型-ids
     */
    Map<String, Set<String>> getCharge(String typeFrom, Set<String> ids);
}
